package com.test.service.impl;

import com.test.entity.GoodsParam;
import com.test.entity.Student;
import com.test.mapper.StudentMapper;
import com.test.service.StudentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {


    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> getStuList(GoodsParam p) {
        return studentMapper.getStuList(p);
    }

    @Override
    public int getCount(GoodsParam p) {
        return studentMapper.getCount(p);
    }

    @Override
    public void delAll(@Param("ids") String ids) {
        studentMapper.delAll(ids);

    }
}
